<?php

namespace Home\Behaviors;
class checkMobileBehavior extends \Think\Behavior{
	public function run(&$param){ 
		header("Content-type:text/html;charset=utf-8");
        if(is_mobile()) {
        	C('DEFAULT_THEME', 'Wap');
        }else{
        	C('DEFAULT_THEME', 'Pc');
        }
	}
}